package edu.gdut.thesissys.vo;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Bulletin entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bulletin", catalog = "gdutmis")
public class Bulletin extends BaseVo implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4340455430676665522L;
	// Fields

	private Integer bulletinId;
	private String bulletinName;
	private String content;
	private String releasedUnit;
	private String releasedUser;
	private Date releasedDate;
	private Date endDate;
	private String summary;
	private Integer majorId;
	private String handler;
	private Integer limitNum;

	// Constructors

	/** default constructor */
	public Bulletin() {
	}

	/** minimal constructor */
	public Bulletin(String bulletinName, String content, Date releasedDate,
			Date endDate, String summary, String handler, Integer limitNum) {
		this.bulletinName = bulletinName;
		this.content = content;
		this.releasedDate = releasedDate;
		this.endDate = endDate;
		this.summary = summary;
		this.handler = handler;
		this.limitNum = limitNum;
	}

	/** full constructor */
	public Bulletin(String bulletinName, String content, String releasedUnit,
			String releasedUser, Date releasedDate, Date endDate,
			String summary, Integer majorId, String handler, Integer limitNum) {
		this.bulletinName = bulletinName;
		this.content = content;
		this.releasedUnit = releasedUnit;
		this.releasedUser = releasedUser;
		this.releasedDate = releasedDate;
		this.endDate = endDate;
		this.summary = summary;
		this.majorId = majorId;
		this.handler = handler;
		this.limitNum = limitNum;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "bulletin_id", unique = true, nullable = false)
	public Integer getBulletinId() {
		return this.bulletinId;
	}

	public void setBulletinId(Integer bulletinId) {
		this.bulletinId = bulletinId;
	}

	@Column(name = "bulletin_name", nullable = false, length = 60)
	public String getBulletinName() {
		return this.bulletinName;
	}

	public void setBulletinName(String bulletinName) {
		this.bulletinName = bulletinName;
	}

	@Column(name = "content", nullable = false, length = 65535)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "released_unit", length = 50)
	public String getReleasedUnit() {
		return this.releasedUnit;
	}

	public void setReleasedUnit(String releasedUnit) {
		this.releasedUnit = releasedUnit;
	}

	@Column(name = "released_user", length = 10)
	public String getReleasedUser() {
		return this.releasedUser;
	}

	public void setReleasedUser(String releasedUser) {
		this.releasedUser = releasedUser;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "Released_date", nullable = false, length = 10)
	public Date getReleasedDate() {
		return this.releasedDate;
	}

	public void setReleasedDate(Date releasedDate) {
		this.releasedDate = releasedDate;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "End_date", nullable = false, length = 10)
	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Column(name = "summary", nullable = false, length = 65535)
	public String getSummary() {
		return this.summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	@Column(name = "major_id")
	public Integer getMajorId() {
		return this.majorId;
	}

	public void setMajorId(Integer majorId) {
		this.majorId = majorId;
	}

	@Column(name = "handler", nullable = false, length = 10)
	public String getHandler() {
		return this.handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}

	@Column(name = "limit_num", nullable = false)
	public Integer getLimitNum() {
		return this.limitNum;
	}

	public void setLimitNum(Integer limitNum) {
		this.limitNum = limitNum;
	}

}